package com.wen.es.service;

import com.wen.es.service.entity.EsDataWrap;

import java.io.IOException;
import java.util.List;

/**
 * Created by LAIO on 2018/6/30.
 */
public interface EsService {

    void deleteIndex(String indexName) throws IOException;

    void craeteIndex(String indexName) throws IOException;

    /**
     * 上传数据
     *
     * @param index        索引
     * @param type         类型
     * @param dataWrapList 数据包装
     * @throws IOException 上传异常
     */
    void uploadData(String index, String type, List<EsDataWrap> dataWrapList);
}
